#ifndef GAMER_H
#define GAMER_H
#include <qthread.h>
#include <qdatastream.h>
#include "map.h"
typedef int t[21];


class Gamer:public QThread
{
Q_OBJECT
public:
	Gamer(bool b);
	virtual void go()=0;
	void set(const Map &p);
	virtual ~Gamer();
	void run();
protected:
	bool bw;
	Map a;
signals:
	void move(int si,int sj,int ei,int ej);
	void sendMsg(QString);
};
QDataStream& operator<<(QDataStream& s, const Steps& a);
QDataStream& operator>>(QDataStream& s,Steps& a);
#endif // GAMER_H
